# RUST
export RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static
export RUSTUP_UPDATE_ROOT=https://mirrors.ustc.edu.cn/rust-static/rustup
source "$HOME/.cargo/env"

# CLANG
[[ -e `which clang` ]] && export CC="clang"
[[ -e `which clang++` ]] && export CXX="clang++"

# Go
#path_prepend "$HOME/work/apps/dev-lang/golang/go/bin"
path_prepend "$HOME/work/codes/lang/go/bin"

# ===== set g environment variables =====
export GOROOT="${HOME}/.g/go"
export G_MIRROR=https://golang.google.cn/dl/
path_prepend "${HOME}/bin"
path_prepend "${HOME}/.g/go/bin"

# npm
path_prepend "${HOME}/.local/share/npm/bin"

# pnpm
export PNPM_HOME="/home/muk/.local/share/pnpm"
path_prepend "$PNPM_HOME"
# pnpm end

# homebrew
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles"
export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.ustc.edu.cn/brew.git"
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-core.git"
path_prepend "/home/linuxbrew/.linuxbrew/bin"

# Flutter
export PUB_HOSTED_URL=https://mirrors.tuna.tsinghua.edu.cn/dart-pub
export FLUTTER_STORAGE_BASE_URL=https://mirrors.tuna.tsinghua.edu.cn/flutter
export FLUTTER_GIT_URL=https://mirrors.tuna.tsinghua.edu.cn/git/flutter-sdk.git
export CHROME_EXECUTABLE="/usr/bin/google-chrome-stable"
path_prepend "${HOME}/.local/share/flutter/bin"
path_prepend "${HOME}/.pub-cache/bin"

# FZF
export FZF_DEFAULT_COMMAND='rg --files'

# doom emacs
path_prepend "${HOME}/.emacs.d/bin"

# helix
export HELIX_RUNTIME="${HOME}/.config/helix/runtime"

# podman
## kind use podman
# export KIND_EXPERIMENTAL_PROVIDER=podman

# ansible
export ANSIBLE_CONFIG="${HOME}/work/ansible/ansible.cfg"

# pyenv
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"

